﻿$!body

<!-- Custom Theme JavaScript -->
<script src="/Content/js/ad.js"></script>
<!-- jQuery -->
<script src="/Content/js/jquery.min.js"></script>
<!-- compiled JavaScript -->
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>



#parse("/default/more.htm")
#parse("/default/ad.htm")
#parse("/default/fx.htm")

<script>
    $(function () {
        $(".video_iframe").each(function () {
            try{
                var obj = $(this);
                var w = $(document).width() - 20;
                var h = w * 258.75 / 345;
                var src = obj.attr("src");
                var vid = src.indexOf("?vid=");
                var end = src.substring(vid + 5);
                var vid = end.substring(0, end.indexOf("&"));
                if (src.indexOf("preview.html") != -1) {  //
                    obj.height(h);
                    obj.width(w);
                    obj.attr("src", "https://v.qq.com/iframe/preview.html?vid=" + vid + "&width=" + w + "&height=" + h + "&auto=0");
                }
                else {
                    obj.height(h);
                    obj.width(w);
                    obj.attr("src", "http://v.qq.com/iframe/player.html?vid=" + vid + "&width=" + w + "&height=" + h + "&auto=0");
                }
            } catch (e) { }
        });       
    });
</script>